package com.zhengtoudai.ui.fragment;

import android.support.v4.app.Fragment;

import com.zhengtoudai.R;
import com.zhengtoudai.base.BaseViewPagerFragment;
import com.zhengtoudai.ui.fragment.investment.BorrowFragment;
import com.zhengtoudai.ui.fragment.investment.TransferFragment;

/**
 * 作者：黑哥 on 2016/7/29 11:21
 */
public class FinancialFragment extends BaseViewPagerFragment{
    private BorrowFragment mBorrowFragment;
    private TransferFragment mTransferFragment;
    @Override
    protected String[] getTitles() {
        return new String[]{"政信项目","债转市场"};
    }

    @Override
    protected Fragment[] getFragments() {
        mBorrowFragment=new BorrowFragment();
        mTransferFragment=new TransferFragment();
        //mAppBarLayout=startAppbar();
        return new Fragment[]{mBorrowFragment, mTransferFragment};
    }

    @Override
    protected int ColorStyle() {
        return R.color.title_text;
    }

    @Override
    protected void initTitle() {
        titleUtil.setTitle("理财",false);
    }



    @Override
    public void onResume() {
        super.onResume();
        //mAppBarLayout.addOnOffsetChangedListener(this);
    }

    @Override
    public void onPause() {
        super.onPause();
        //mAppBarLayout.removeOnOffsetChangedListener(this);
    }
}
